package com.projects.soundza.app.factory;

import com.projects.soundza.domain.Person;
import com.projects.soundza.domain.Role;
import com.projects.soundza.domain.User;

public class UserFactory {
	// Don't set Lists, lists gets set in the classes
	// Check album's getTracks method as an example
	public static User getUser(String username, String password, String avatarUrl, Person person, Role role)
	{
		User entity = new User();
		entity.setAvatarUrl(avatarUrl);
		entity.setPassword(password);
		entity.setPerson(person);
		entity.setRole(role);
		entity.setUsername(username);
		return entity;
	}
}
